﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace WSLuuDiemV2
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IServiceLuuDiem" in both code and config file together.
    [ServiceContract]
    public interface IServiceLuuDiem
    {
        [OperationContract]
        IList<KetQua> GetData();

        [OperationContract]
        IList<KetQua> LayDuLieu();

        [OperationContract]
        void SetData(KetQua kq);
    }

    [DataContract]
    public class KetQua
    {
        [DataMember]
        public string TenNguoiChoi { get; set; }

        [DataMember]
        public int Diem { get; set; }
    }
}
